package com.example.fms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.fms.utils.UserVo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("categories")
public class Categories extends UserVo {
    //id
    @TableId(type = IdType.AUTO)
    @TableField("cat_id")
    private Long catId;
    @TableField("cat_name")
    private String catName;
    @TableField("cat_level")
    private Integer catLevel;
    @TableField("cat_deleted")
    private Integer catDeleted;
    @TableField("cat_pid")
    private Long catPid;

    //id
    private Long cat_id;
    private String cat_name;
    private Integer cat_level;
    private Integer cat_deleted;
    private Long cat_pid;
}


